<me:UIVKZUAB x:Class="WPFExcelReport.TVAPR"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    FontSize="14"
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVKZUAB.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:Divideby100 x:Key="d100"/>
        <ucd:PreisConverter x:Key="price"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVKZUAB.Resources>
    <StackPanel Grid.Column="0" >
        <WrapPanel Visibility="{Binding IsAuto,ElementName=TV,Converter={StaticResource nbv}}">         
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=单号:}}"></TextBlock>
                <ex:TXT72 MaxLength="2" PRE="  " Grid.Column="1" Text="{Binding KRS,ElementName=TV}" 
                                Width="40" />
                <ex:TXT72 MaxLength="6" PRE="000000" Grid.Column="2"
                          IsAutoClear="True"
                          Text="{Binding LFD,ElementName=TV}"/>
            <ex:TXT72 MaxLength="3" PRE="000"  IsAutoClear="True"
                          Grid.Column="3" Text="{Binding POS,ElementName=TV}" 
                               Width="60" />             
            
            <Grid Margin="10,0,0,0"  VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Grid.Column="0"  Click="QueryCommand" Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Search.png" />
                    </Button.Background>
                </Button>
                <TextBlock Grid.Column="2" FontSize="16" Text="{Binding Source={Localization:Translate Word=查询}}"/>
            </Grid>
        </WrapPanel> 
        <TextBlock Text="{Binding VKZAUF,ElementName=TV}"  />
        <StackPanel>  
        <WrapPanel > 
                <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=数量1:}}"></TextBlock>
                <ex:TXT72 MaxLength="8"  Grid.Column="1" 
                          Text="{Binding VKZSTMENGE1,Converter={StaticResource d100}}" 
                              IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"     Width="40" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=价格:}}"></TextBlock>
                    <ex:NumericBox MaxLength="8"  Grid.Column="1"
                                   Text="{Binding VKZSTPREIS1,Converter={StaticResource price}}" 
                           DecimalPlaces="2"
                              IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"   Width="40" />
            </Grid>
        </WrapPanel>
        <WrapPanel>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=数量2:}}"></TextBlock>
                    <ex:NumericBox MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTMENGE2,Converter={StaticResource d100}}" 
                           DecimalPlaces="2"
                              IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"     Width="40" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=价格:}}"></TextBlock>
                    <ex:NumericBox MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTPREIS2,Converter={StaticResource price}}" 
                           DecimalPlaces="2"
                              IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"   Width="40" />
            </Grid>
        </WrapPanel>
        <WrapPanel>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=数量3:}}"></TextBlock>
                    <ex:TXT72 MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTMENGE3,Converter={StaticResource d100}}" 
                              IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"     Width="40" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=价格:}}"></TextBlock>
                    <ex:NumericBox MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTPREIS3,Converter={StaticResource price}}" 
                           DecimalPlaces="2"   
                          IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"   Width="40" />
            </Grid>
        </WrapPanel>
        <WrapPanel>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=数量4:}}"></TextBlock>
                    <ex:TXT72 MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTMENGE4,Converter={StaticResource d100}}" 
                              IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"     Width="40" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=价格:}}"></TextBlock>
                    <ex:NumericBox MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTPREIS4,Converter={StaticResource price}}" 
                           DecimalPlaces="2"    
                          IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"   Width="40" />
            </Grid>
        </WrapPanel>
        <WrapPanel>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=数量5:}}"></TextBlock>
                    <ex:TXT72 MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTMENGE5,Converter={StaticResource d100}}" 
                              IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"     Width="40" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=价格:}}"></TextBlock>
                <ex:NumericBox MaxLength="8"  Grid.Column="1" Text="{Binding VKZSTPREIS5,Converter={StaticResource price}}" 
                           DecimalPlaces="2"   
                          IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"   Width="40" />
            </Grid>
        </WrapPanel>
        </StackPanel>
    </StackPanel>
</me:UIVKZUAB>
